# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit eutils multilib git-2

DESCRIPTION="libretro implementation of VBA. (Gameboy Advance)"
HOMEPAGE="https://github.com/libretro/vba-next"
SRC_URI=""

EGIT_REPO_URI="git://github.com/libretro/vba-next.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~arm"
IUSE=""

REQUIRED_USE=""

RDEPEND=""

DEPEND=""

S="${WORKDIR}"

src_unpack() {
	S="${WORKDIR}" git-2_src_unpack
}

src_compile() {
	emake -f Makefile.libretro || die "emake failed"
}

src_install() {
        exeinto /usr/$(get_libdir)/libretro
        doexe *.so || die
}
